package creational.factory.method;

import creational.factory.method.factory.MethodFactory;
import creational.factory.method.factory.PhoneFactory;
import creational.factory.method.factory.SpicyStripsFactory;

/**
 * @author Zhang Ziyi
 */
public class Main {
    public static void main(String[] args) {
        MethodFactory phoneFactory = new PhoneFactory();
        System.out.println("生产了:" + phoneFactory.produce().getName());
        MethodFactory spicyStripsFactory = new SpicyStripsFactory();
        System.out.println("生产了:" + spicyStripsFactory.produce().getName());
    }
}
